Integrand size = 23, antiderivative size = 82 \[ \int \frac {\coth ^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {x}{a+b}+\frac {b^{5/2} \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{a^{5/2} (a+b) d}-\frac {(a-b) \coth (c+d x)}{a^2 d}-\frac {\coth ^3(c+d x)}{3 a d} \]
x/(a+b)+b^(5/2)*arctan(b^(1/2)*tanh(d*x+c)/a^(1/2))/a^(5/2)/(a+b)/d-(a-b)* coth(d*x+c)/a^2/d-1/3*coth(d*x+c)^3/a/d
Time = 0.75 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.11 \[ \int \frac {\coth ^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {\frac {6 \left (c+d x+\frac {b^{5/2} \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{a^{5/2}}\right )}{a+b}-\frac {(-2 a+3 b+(4 a-3 b) \cosh (2 (c+d x))) \coth (c+d x) \text {csch}^2(c+d x)}{a^2}}{6 d} \]
((6*(c + d*x + (b^(5/2)*ArcTan[(Sqrt[b]*Tanh[c + d*x])/Sqrt[a]])/a^(5/2))) /(a + b) - ((-2*a + 3*b + (4*a - 3*b)*Cosh[2*(c + d*x)])*Coth[c + d*x]*Csc h[c + d*x]^2)/a^2)/(6*d)
Time = 0.36 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.17, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.391, Rules used = {3042, 4153, 382, 27, 445, 25, 397, 218, 219}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\coth ^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \frac {1}{\tan (i c+i d x)^4 \left (a-b \tan (i c+i d x)^2\right )}dx\) |
\(\Big \downarrow \) 4153 |
\(\displaystyle \frac {\int \frac {\coth ^4(c+d x)}{\left (1-\tanh ^2(c+d x)\right ) \left (b \tanh ^2(c+d x)+a\right )}d\tanh (c+d x)}{d}\) |
\(\Big \downarrow \) 382 |
\(\displaystyle \frac {\frac {\int \frac {3 \coth ^2(c+d x) \left (b \tanh ^2(c+d x)+a-b\right )}{\left (1-\tanh ^2(c+d x)\right ) \left (b \tanh ^2(c+d x)+a\right )}d\tanh (c+d x)}{3 a}-\frac {\coth ^3(c+d x)}{3 a}}{d}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\frac {\int \frac {\coth ^2(c+d x) \left (b \tanh ^2(c+d x)+a-b\right )}{\left (1-\tanh ^2(c+d x)\right ) \left (b \tanh ^2(c+d x)+a\right )}d\tanh (c+d x)}{a}-\frac {\coth ^3(c+d x)}{3 a}}{d}\) |
\(\Big \downarrow \) 445 |
\(\displaystyle \frac {\frac {-\frac {\int -\frac {a^2-b a+b^2+(a-b) b \tanh ^2(c+d x)}{\left (1-\tanh ^2(c+d x)\right ) \left (b \tanh ^2(c+d x)+a\right )}d\tanh (c+d x)}{a}-\frac {(a-b) \coth (c+d x)}{a}}{a}-\frac {\coth ^3(c+d x)}{3 a}}{d}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\frac {\frac {\int \frac {a^2-b a+b^2+(a-b) b \tanh ^2(c+d x)}{\left (1-\tanh ^2(c+d x)\right ) \left (b \tanh ^2(c+d x)+a\right )}d\tanh (c+d x)}{a}-\frac {(a-b) \coth (c+d x)}{a}}{a}-\frac {\coth ^3(c+d x)}{3 a}}{d}\) |
\(\Big \downarrow \) 397 |
\(\displaystyle \frac {\frac {\frac {\frac {a^2 \int \frac {1}{1-\tanh ^2(c+d x)}d\tanh (c+d x)}{a+b}+\frac {b^3 \int \frac {1}{b \tanh ^2(c+d x)+a}d\tanh (c+d x)}{a+b}}{a}-\frac {(a-b) \coth (c+d x)}{a}}{a}-\frac {\coth ^3(c+d x)}{3 a}}{d}\) |
\(\Big \downarrow \) 218 |
\(\displaystyle \frac {\frac {\frac {\frac {a^2 \int \frac {1}{1-\tanh ^2(c+d x)}d\tanh (c+d x)}{a+b}+\frac {b^{5/2} \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{\sqrt {a} (a+b)}}{a}-\frac {(a-b) \coth (c+d x)}{a}}{a}-\frac {\coth ^3(c+d x)}{3 a}}{d}\) |
\(\Big \downarrow \) 219 |
\(\displaystyle \frac {\frac {\frac {\frac {a^2 \text {arctanh}(\tanh (c+d x))}{a+b}+\frac {b^{5/2} \arctan \left (\frac {\sqrt {b} \tanh (c+d x)}{\sqrt {a}}\right )}{\sqrt {a} (a+b)}}{a}-\frac {(a-b) \coth (c+d x)}{a}}{a}-\frac {\coth ^3(c+d x)}{3 a}}{d}\) |
(-1/3*Coth[c + d*x]^3/a + (((b^(5/2)*ArcTan[(Sqrt[b]*Tanh[c + d*x])/Sqrt[a ]])/(Sqrt[a]*(a + b)) + (a^2*ArcTanh[Tanh[c + d*x]])/(a + b))/a - ((a - b) *Coth[c + d*x])/a)/a)/d
3.2.79.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[a/b, 2]/a)*ArcTan[x/R t[a/b, 2]], x] /; FreeQ[{a, b}, x] && PosQ[a/b]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[-b, 2]))* ArcTanh[Rt[-b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && NegQ[a/b] && (Gt Q[a, 0] || LtQ[b, 0])
Int[((e_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^2)^(p_)*((c_) + (d_.)*(x_)^2)^(q_) , x_Symbol] :> Simp[(e*x)^(m + 1)*(a + b*x^2)^(p + 1)*((c + d*x^2)^(q + 1)/ (a*c*e*(m + 1))), x] - Simp[1/(a*c*e^2*(m + 1)) Int[(e*x)^(m + 2)*(a + b* x^2)^p*(c + d*x^2)^q*Simp[(b*c + a*d)*(m + 3) + 2*(b*c*p + a*d*q) + b*d*(m + 2*p + 2*q + 5)*x^2, x], x], x] /; FreeQ[{a, b, c, d, e, p, q}, x] && NeQ[ b*c - a*d, 0] && LtQ[m, -1] && IntBinomialQ[a, b, c, d, e, m, 2, p, q, x]
Int[((e_) + (f_.)*(x_)^2)/(((a_) + (b_.)*(x_)^2)*((c_) + (d_.)*(x_)^2)), x_ Symbol] :> Simp[(b*e - a*f)/(b*c - a*d) Int[1/(a + b*x^2), x], x] - Simp[ (d*e - c*f)/(b*c - a*d) Int[1/(c + d*x^2), x], x] /; FreeQ[{a, b, c, d, e , f}, x]
Int[((g_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2)^(q_ .)*((e_) + (f_.)*(x_)^2), x_Symbol] :> Simp[e*(g*x)^(m + 1)*(a + b*x^2)^(p + 1)*((c + d*x^2)^(q + 1)/(a*c*g*(m + 1))), x] + Simp[1/(a*c*g^2*(m + 1)) Int[(g*x)^(m + 2)*(a + b*x^2)^p*(c + d*x^2)^q*Simp[a*f*c*(m + 1) - e*(b*c + a*d)*(m + 2 + 1) - e*2*(b*c*p + a*d*q) - b*e*d*(m + 2*(p + q + 2) + 1)*x^ 2, x], x], x] /; FreeQ[{a, b, c, d, e, f, g, p, q}, x] && LtQ[m, -1]
Int[((d_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*((c_.)*tan[(e_.) + (f_.)*(x_)])^(n_))^(p_.), x_Symbol] :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Simp[c*(ff/f) Subst[Int[(d*ff*(x/c))^m*((a + b*(ff*x)^n)^p/(c^2 + f f^2*x^2)), x], x, c*(Tan[e + f*x]/ff)], x]] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && (IGtQ[p, 0] || EqQ[n, 2] || EqQ[n, 4] || (IntegerQ[p] && Ratio nalQ[n]))
Time = 0.23 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.33
method | result | size |
derivativedivides | \(-\frac {-\frac {b^{3} \arctan \left (\frac {b \tanh \left (d x +c \right )}{\sqrt {a b}}\right )}{\left (a +b \right ) a^{2} \sqrt {a b}}-\frac {-a +b}{a^{2} \tanh \left (d x +c \right )}+\frac {1}{3 a \tanh \left (d x +c \right )^{3}}-\frac {\ln \left (\tanh \left (d x +c \right )+1\right )}{2 a +2 b}+\frac {\ln \left (\tanh \left (d x +c \right )-1\right )}{2 a +2 b}}{d}\) | \(109\) |
default | \(-\frac {-\frac {b^{3} \arctan \left (\frac {b \tanh \left (d x +c \right )}{\sqrt {a b}}\right )}{\left (a +b \right ) a^{2} \sqrt {a b}}-\frac {-a +b}{a^{2} \tanh \left (d x +c \right )}+\frac {1}{3 a \tanh \left (d x +c \right )^{3}}-\frac {\ln \left (\tanh \left (d x +c \right )+1\right )}{2 a +2 b}+\frac {\ln \left (\tanh \left (d x +c \right )-1\right )}{2 a +2 b}}{d}\) | \(109\) |
risch | \(\frac {x}{a +b}-\frac {2 \left (6 a \,{\mathrm e}^{4 d x +4 c}-3 b \,{\mathrm e}^{4 d x +4 c}-6 \,{\mathrm e}^{2 d x +2 c} a +6 b \,{\mathrm e}^{2 d x +2 c}+4 a -3 b \right )}{3 d \,a^{2} \left ({\mathrm e}^{2 d x +2 c}-1\right )^{3}}+\frac {\sqrt {-a b}\, b^{2} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 \sqrt {-a b}+a -b}{a +b}\right )}{2 a^{3} \left (a +b \right ) d}-\frac {\sqrt {-a b}\, b^{2} \ln \left ({\mathrm e}^{2 d x +2 c}-\frac {2 \sqrt {-a b}-a +b}{a +b}\right )}{2 a^{3} \left (a +b \right ) d}\) | \(190\) |
-1/d*(-b^3/(a+b)/a^2/(a*b)^(1/2)*arctan(b*tanh(d*x+c)/(a*b)^(1/2))-1/a^2*( -a+b)/tanh(d*x+c)+1/3/a/tanh(d*x+c)^3-1/(2*a+2*b)*ln(tanh(d*x+c)+1)+1/(2*a +2*b)*ln(tanh(d*x+c)-1))
Leaf count of result is larger than twice the leaf count of optimal. 1023 vs. \(2 (72) = 144\).
Time = 0.31 (sec) , antiderivative size = 2368, normalized size of antiderivative = 28.88 \[ \int \frac {\coth ^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\text {Too large to display} \]
[1/6*(6*a^2*d*x*cosh(d*x + c)^6 + 36*a^2*d*x*cosh(d*x + c)*sinh(d*x + c)^5 + 6*a^2*d*x*sinh(d*x + c)^6 - 6*(3*a^2*d*x + 4*a^2 + 2*a*b - 2*b^2)*cosh( d*x + c)^4 + 6*(15*a^2*d*x*cosh(d*x + c)^2 - 3*a^2*d*x - 4*a^2 - 2*a*b + 2 *b^2)*sinh(d*x + c)^4 - 6*a^2*d*x + 24*(5*a^2*d*x*cosh(d*x + c)^3 - (3*a^2 *d*x + 4*a^2 + 2*a*b - 2*b^2)*cosh(d*x + c))*sinh(d*x + c)^3 + 6*(3*a^2*d* x + 4*a^2 - 4*b^2)*cosh(d*x + c)^2 + 6*(15*a^2*d*x*cosh(d*x + c)^4 + 3*a^2 *d*x - 6*(3*a^2*d*x + 4*a^2 + 2*a*b - 2*b^2)*cosh(d*x + c)^2 + 4*a^2 - 4*b ^2)*sinh(d*x + c)^2 + 3*(b^2*cosh(d*x + c)^6 + 6*b^2*cosh(d*x + c)*sinh(d* x + c)^5 + b^2*sinh(d*x + c)^6 - 3*b^2*cosh(d*x + c)^4 + 3*(5*b^2*cosh(d*x + c)^2 - b^2)*sinh(d*x + c)^4 + 3*b^2*cosh(d*x + c)^2 + 4*(5*b^2*cosh(d*x + c)^3 - 3*b^2*cosh(d*x + c))*sinh(d*x + c)^3 + 3*(5*b^2*cosh(d*x + c)^4 - 6*b^2*cosh(d*x + c)^2 + b^2)*sinh(d*x + c)^2 - b^2 + 6*(b^2*cosh(d*x + c )^5 - 2*b^2*cosh(d*x + c)^3 + b^2*cosh(d*x + c))*sinh(d*x + c))*sqrt(-b/a) *log(((a^2 + 2*a*b + b^2)*cosh(d*x + c)^4 + 4*(a^2 + 2*a*b + b^2)*cosh(d*x + c)*sinh(d*x + c)^3 + (a^2 + 2*a*b + b^2)*sinh(d*x + c)^4 + 2*(a^2 - b^2 )*cosh(d*x + c)^2 + 2*(3*(a^2 + 2*a*b + b^2)*cosh(d*x + c)^2 + a^2 - b^2)* sinh(d*x + c)^2 + a^2 - 6*a*b + b^2 + 4*((a^2 + 2*a*b + b^2)*cosh(d*x + c) ^3 + (a^2 - b^2)*cosh(d*x + c))*sinh(d*x + c) + 4*((a^2 + a*b)*cosh(d*x + c)^2 + 2*(a^2 + a*b)*cosh(d*x + c)*sinh(d*x + c) + (a^2 + a*b)*sinh(d*x + c)^2 + a^2 - a*b)*sqrt(-b/a))/((a + b)*cosh(d*x + c)^4 + 4*(a + b)*cosh...
\[ \int \frac {\coth ^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\int \frac {\coth ^{4}{\left (c + d x \right )}}{a + b \tanh ^{2}{\left (c + d x \right )}}\, dx \]
Leaf count of result is larger than twice the leaf count of optimal. 1038 vs. \(2 (72) = 144\).
Time = 0.42 (sec) , antiderivative size = 1038, normalized size of antiderivative = 12.66 \[ \int \frac {\coth ^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\text {Too large to display} \]
-1/8*(a*b - b^2)*log((a + b)*e^(4*d*x + 4*c) + 2*(a - b)*e^(2*d*x + 2*c) + a + b)/((a^3 + a^2*b)*d) + 1/8*(a*b - b^2)*log(2*(a - b)*e^(-2*d*x - 2*c) + (a + b)*e^(-4*d*x - 4*c) + a + b)/((a^3 + a^2*b)*d) + 1/16*(a^2*b - 6*a *b^2 + b^3)*arctan(1/2*((a + b)*e^(2*d*x + 2*c) + a - b)/sqrt(a*b))/((a^3 + a^2*b)*sqrt(a*b)*d) - 1/16*(a^2*b - 6*a*b^2 + b^3)*arctan(1/2*((a + b)*e ^(-2*d*x - 2*c) + a - b)/sqrt(a*b))/((a^3 + a^2*b)*sqrt(a*b)*d) - 1/24*(3* (12*a - b)*e^(4*d*x + 4*c) - 6*(9*a - b)*e^(2*d*x + 2*c) + 22*a - 3*b)/((a ^2*e^(6*d*x + 6*c) - 3*a^2*e^(4*d*x + 4*c) + 3*a^2*e^(2*d*x + 2*c) - a^2)* d) - 1/6*(3*(4*a - b)*e^(4*d*x + 4*c) - 6*(2*a - b)*e^(2*d*x + 2*c) + 4*a - 3*b)/((a^2*e^(6*d*x + 6*c) - 3*a^2*e^(4*d*x + 4*c) + 3*a^2*e^(2*d*x + 2* c) - a^2)*d) - 1/24*(6*(9*a - b)*e^(-2*d*x - 2*c) - 3*(12*a - b)*e^(-4*d*x - 4*c) - 22*a + 3*b)/((3*a^2*e^(-2*d*x - 2*c) - 3*a^2*e^(-4*d*x - 4*c) + a^2*e^(-6*d*x - 6*c) - a^2)*d) - 1/6*(6*(2*a - b)*e^(-2*d*x - 2*c) - 3*(4* a - b)*e^(-4*d*x - 4*c) - 4*a + 3*b)/((3*a^2*e^(-2*d*x - 2*c) - 3*a^2*e^(- 4*d*x - 4*c) + a^2*e^(-6*d*x - 6*c) - a^2)*d) + 1/4*(6*(a + b)*e^(-2*d*x - 2*c) - 3*b*e^(-4*d*x - 4*c) - 2*a - 3*b)/((3*a^2*e^(-2*d*x - 2*c) - 3*a^2 *e^(-4*d*x - 4*c) + a^2*e^(-6*d*x - 6*c) - a^2)*d) + 1/4*b*log((a + b)*e^( 4*d*x + 4*c) + 2*(a - b)*e^(2*d*x + 2*c) + a + b)/(a^2*d) - 1/4*b*log(2*(a - b)*e^(-2*d*x - 2*c) + (a + b)*e^(-4*d*x - 4*c) + a + b)/(a^2*d) + 1/4*( 2*a - b)*log(e^(2*d*x + 2*c) - 1)/(a^2*d) - 1/2*b*log(e^(2*d*x + 2*c) -...
Leaf count of result is larger than twice the leaf count of optimal. 147 vs. \(2 (72) = 144\).
Time = 0.35 (sec) , antiderivative size = 147, normalized size of antiderivative = 1.79 \[ \int \frac {\coth ^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {\frac {3 \, b^{3} \arctan \left (\frac {a e^{\left (2 \, d x + 2 \, c\right )} + b e^{\left (2 \, d x + 2 \, c\right )} + a - b}{2 \, \sqrt {a b}}\right )}{{\left (a^{3} + a^{2} b\right )} \sqrt {a b}} + \frac {3 \, {\left (d x + c\right )}}{a + b} - \frac {2 \, {\left (6 \, a e^{\left (4 \, d x + 4 \, c\right )} - 3 \, b e^{\left (4 \, d x + 4 \, c\right )} - 6 \, a e^{\left (2 \, d x + 2 \, c\right )} + 6 \, b e^{\left (2 \, d x + 2 \, c\right )} + 4 \, a - 3 \, b\right )}}{a^{2} {\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{3}}}{3 \, d} \]
1/3*(3*b^3*arctan(1/2*(a*e^(2*d*x + 2*c) + b*e^(2*d*x + 2*c) + a - b)/sqrt (a*b))/((a^3 + a^2*b)*sqrt(a*b)) + 3*(d*x + c)/(a + b) - 2*(6*a*e^(4*d*x + 4*c) - 3*b*e^(4*d*x + 4*c) - 6*a*e^(2*d*x + 2*c) + 6*b*e^(2*d*x + 2*c) + 4*a - 3*b)/(a^2*(e^(2*d*x + 2*c) - 1)^3))/d
Time = 2.21 (sec) , antiderivative size = 519, normalized size of antiderivative = 6.33 \[ \int \frac {\coth ^4(c+d x)}{a+b \tanh ^2(c+d x)} \, dx=\frac {x}{a+b}+\frac {\mathrm {atan}\left (\left ({\mathrm {e}}^{2\,c}\,{\mathrm {e}}^{2\,d\,x}\,\left (\frac {4\,b^3}{a^2\,d\,{\left (a+b\right )}^3\,\left (a^3+b\,a^2\right )\,\sqrt {b^5}}+\frac {\left (a^4\,d\,\sqrt {b^5}-a^2\,b^2\,d\,\sqrt {b^5}\right )\,\left (a-b\right )}{b^3\,{\left (a+b\right )}^2\,\left (a^3+b\,a^2\right )\,\sqrt {a^7\,d^2+2\,a^6\,b\,d^2+a^5\,b^2\,d^2}\,\sqrt {a^5\,d^2\,{\left (a+b\right )}^2}}\right )+\frac {\left (a-b\right )\,\left (a^4\,d\,\sqrt {b^5}+2\,a^3\,b\,d\,\sqrt {b^5}+a^2\,b^2\,d\,\sqrt {b^5}\right )}{b^3\,{\left (a+b\right )}^2\,\left (a^3+b\,a^2\right )\,\sqrt {a^7\,d^2+2\,a^6\,b\,d^2+a^5\,b^2\,d^2}\,\sqrt {a^5\,d^2\,{\left (a+b\right )}^2}}\right )\,\left (\frac {a^4\,\sqrt {a^7\,d^2+2\,a^6\,b\,d^2+a^5\,b^2\,d^2}}{2}+a^3\,b\,\sqrt {a^7\,d^2+2\,a^6\,b\,d^2+a^5\,b^2\,d^2}+\frac {a^2\,b^2\,\sqrt {a^7\,d^2+2\,a^6\,b\,d^2+a^5\,b^2\,d^2}}{2}\right )\right )\,\sqrt {b^5}}{\sqrt {a^7\,d^2+2\,a^6\,b\,d^2+a^5\,b^2\,d^2}}-\frac {8}{3\,a\,d\,\left (3\,{\mathrm {e}}^{2\,c+2\,d\,x}-3\,{\mathrm {e}}^{4\,c+4\,d\,x}+{\mathrm {e}}^{6\,c+6\,d\,x}-1\right )}-\frac {4\,\left (a^2+b\,a\right )}{a^2\,d\,\left (a+b\right )\,\left ({\mathrm {e}}^{4\,c+4\,d\,x}-2\,{\mathrm {e}}^{2\,c+2\,d\,x}+1\right )}-\frac {2\,\left (2\,a^2+a\,b-b^2\right )}{a^2\,d\,\left ({\mathrm {e}}^{2\,c+2\,d\,x}-1\right )\,\left (a+b\right )} \]
x/(a + b) + (atan((exp(2*c)*exp(2*d*x)*((4*b^3)/(a^2*d*(a + b)^3*(a^2*b + a^3)*(b^5)^(1/2)) + ((a^4*d*(b^5)^(1/2) - a^2*b^2*d*(b^5)^(1/2))*(a - b))/ (b^3*(a + b)^2*(a^2*b + a^3)*(a^7*d^2 + 2*a^6*b*d^2 + a^5*b^2*d^2)^(1/2)*( a^5*d^2*(a + b)^2)^(1/2))) + ((a - b)*(a^4*d*(b^5)^(1/2) + 2*a^3*b*d*(b^5) ^(1/2) + a^2*b^2*d*(b^5)^(1/2)))/(b^3*(a + b)^2*(a^2*b + a^3)*(a^7*d^2 + 2 *a^6*b*d^2 + a^5*b^2*d^2)^(1/2)*(a^5*d^2*(a + b)^2)^(1/2)))*((a^4*(a^7*d^2 + 2*a^6*b*d^2 + a^5*b^2*d^2)^(1/2))/2 + a^3*b*(a^7*d^2 + 2*a^6*b*d^2 + a^ 5*b^2*d^2)^(1/2) + (a^2*b^2*(a^7*d^2 + 2*a^6*b*d^2 + a^5*b^2*d^2)^(1/2))/2 ))*(b^5)^(1/2))/(a^7*d^2 + 2*a^6*b*d^2 + a^5*b^2*d^2)^(1/2) - 8/(3*a*d*(3* exp(2*c + 2*d*x) - 3*exp(4*c + 4*d*x) + exp(6*c + 6*d*x) - 1)) - (4*(a*b + a^2))/(a^2*d*(a + b)*(exp(4*c + 4*d*x) - 2*exp(2*c + 2*d*x) + 1)) - (2*(a *b + 2*a^2 - b^2))/(a^2*d*(exp(2*c + 2*d*x) - 1)*(a + b))